Ext.app.REMOTING_API = {
	"url":"cgi_bin\/direct_router.pl",
	"type":"remoting",
	"actions":{
		"Remote_Actions":[{
			"name":"login",				// initiate session
			"len":2					// user + pass
		},{
			"name":"logout",			// delete session
			"len":0	
		},{
			"name":"map_uids",
			"len":1					// uid list ...
		},{
			"name":"get_meta_report_contents_by_mtime",
			"len":5					// portal, meta_report, instance, mtime
		},{
			"name":"get_report_contents_by_mtime",
			"len":3					// portal, report, mtime
		},{
			"name":"register_portal_access_request",
			"len":2					// portal, txt for request
		},{
			"name":"get_portal_details",		// return portal information
			"len":1					// portal to get details of
		},{
			"name":"duplicate_portal_by_name",	// Return preference data for user
			"len":1
		},{
			"name":"duplicate_report",		// Duplicate the named report
			"len":1
		},{
			"name":"delete_portal_by_name",		// Delete specified portal
			"len":1
		},{
			"name":"delete_report",			// Delete specified report
			"len":1
		},{
			"name":"get_all_preference_data",	// Return preference data for user
			"len":0
		},{
			"name":"set_preference_data",		// Set preference data for user
								// key=> value hash
			"len":1
		},{
			"name":"get_supported_type_desc_list",	// returns type=>desc array
			"len":0
		},{
			"name":"report_update",			// Update fields in a report
			"len":8 				// xmlfile,desc,attrs,hn,dir,pat,type,display_text
		},{
			"name":"get_all_reports",		// all reports basic info
			"len":0					
		},{
			"name":"get_user_portal_list",
			"len":0					// Get user name from session
		},{
			"name":"get_roles",			// Get list of rules (if any) for user
			"len":0
		},{
			"name":"compare_prefs",			// list of new and obsolete prefs
			"len":0					// user prefs against __DEFAULT__
		},{
			"name":"host_checks",			// Check remote parts where 
								// arg1=hostname
								// arg2=ping|dir|matches
								// arg3=""|dirname|dir/pattern
			"len":3
		},{
			"name":"set_prefs",			// Update prefs (from cookie)
			"len":0
		},{
			"name":"get_latest_updated_reports", // Return recently updated reports
			"len":2					// max_count,max_age (user from session)
		},{
			"name":"get_portal_report_names", // Basic details, no backend interaction
			"len":1					// portal
		},{
			"name":"get_portal_meta_report_names", // Meta report names, no backend interaction
			"len":1					// portal
		},{
			"name":"filter_meta_reports",		// detail meta report information
			"len":3					// portal, meta report, oldest
		},{
			"name":"update_portal_reports", 	// More details, backend interaction (slower)
			"len":3					// portal, reports updated, users updated
		},{
			"name":"get_portal_report_details", // More details, backend interaction (slower)
			"len":2					// portal,report name
		},{
			"name":"get_portal_report_instances", // Get list of report instances
			"len":2					// portal,report name
		},{
			"name":"get_user_list",			// return list of defined users
			"len":0,				// no args
		},{
			"name":"get_user_alerting_info",	// return hash of reports/alerting
			"len":0,				// user cookie for user info
		},{
			"name":"set_user_alerting_info",	// set alerting - first is list
			"len":2,				// of alerts, 2nd is user.
		},{
			"name":"get_report_xml",		// return rawxml for report
			"len":2,				// report, type(R|M)
		},{
			"name":"get_portal_xml",		// return rawxml for portal
			"len":1,				// portal
		},{
			"name":"set_report_xml",		// error is return
			"len":3,				// report, type(R|M), xml
		},{
			"name":"set_portal_xml",		// error is return
			"len":2,				// portal, xml
		},{
			"name":"get_file", 			// Get file contents
			"len":3					// portal,report name,file name
		},{
			"name":"get_file_url", 			// Write specified content to a URL
								// and return URL for displaying it...
			"len":3					// portal,report name,file name
		} ]
	}
};
